$(document).ready(function () {
    WfForm.registerCheckEvent(WfForm.OPER_SUBMIT, function (callback) {
        //短地址fieldid
        var ddzField = WfForm.convertFieldNameToId("ygzzlj");
        //流程requestID
        var requestId = jQuery("#requestid").val();
        //个人手机号
        var grdhField = WfForm.convertFieldNameToId("grdh");
        var grdhVal = WfForm.getFieldValue(grdhField);
        jQuery.ajax({
            url: "/api/weavernorth/shortAddress/getAddress",
            type: "get",
            async: false,
            data: {
                "grdhVal": grdhVal,
                "requestId":requestId
            },
            dataType: "text",
            success: function (data) {
                WfForm.changeFieldValue(ddzField, {
                    value: data
                });
                callback();
            },
            error: function () {
                alert("加载失败，请联系管理员！")
            }
        });
    });
});
